//
//  ELBasePupupView.h
//  SportRing
//
//  Created by elwin on 10/29/14.
//  Copyright (c) 2014 HotOne. All rights reserved.
//


#import "LGBaseView.h"

@class ELBasePupupView;


typedef void (^CommonPopupViewConfirmBlock)(void);
typedef void (^CommonPopupViewCancelBlock)(void);

@interface ELBasePupupView : LGBaseView
{
    BOOL        disableUserInterfaced;
    CGFloat     incressedHeight;
}

@property (nonatomic,copy) CommonPopupViewCancelBlock dismissAction;
@property (nonatomic,copy) CommonPopupViewConfirmBlock confirmAction;
@property (nonatomic,retain) UIControl   *overlayView;;
@property BOOL  touchToDismiss;

- (void)showInView:(UIView *)pView withOverlayView:(BOOL)overLay;
- (void)showInView:(UIView*)pView;
- (void)showInViewAtBottom:(UIView*)pView;
- (void)show;
- (void)showAtBottom;

- (void)fadeOut;
- (void)fadeOutToBottom:(UIView *)view;

+ (UIWindow*)getMainWindow;

@end

